﻿@model CREAPA.Dominio.Problema
@using CREAPA.UL.Web.HtmlHelpers

@{
    ViewBag.Title = "Excluir";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Excluir Problema</h2>

<h3>Você realmente deseja excluir esse Problema?</h3>
<fieldset>
    <legend><b>Problema</b></legend>
    <p>
    <div class="display-label">
     <b> @Html.DisplayNameFor(model => model.Descricao)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Descricao)
    </div></p>
    <p>
    <div class="display-label">
      <b> @Html.DisplayNameFor(model => model.Prioridade)</b>
    </div>
    <div class="display-field">
        @Html.DisableableDropDownList("Prioridade",null,null, new { id = "cbGender1", style = "width:100px;"})
    </div></p>
    <p>
    <div class="display-label">
      <b> @Html.DisplayNameFor(model => model.GrupoProblema)</b>
    </div>
    <div class="display-field">
        @Html.DisableableDropDownList("GrupoProblema",null,null, new { id = "cbGender2", style = "width:300px;"})
    </div></p>
    <p>
    <div class="display-label">
      <b> @Html.DisplayNameFor(model => model.Ativo)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Ativo)
    </div></p>
    @using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
        <p>
         <input type="submit" value="Excluir" class="button" />
         @Html.ActionLink("Voltar", "Index",null,new { @class = "button2" })
      </p>
}
</fieldset>

<script type="text/javascript">
    $("#cb_Toggle").ready(function () {
        var $Gender = $("#cbGender1");

        $Gender.disableDropDownList();
    });
</script>   
    
<script type="text/javascript">
        $("#cb_Toggle").ready(function () {
            var $Gender = $("#cbGender2");

            $Gender.disableDropDownList();
        });
</script>  

    

